package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppPrdShow;
import com.irdstudio.apicenter.console.dm.AppPrdShowDao;

@Service(value = "appPrdShowService")
public class AppPrdShowService {

	@Autowired
	private AppPrdShowDao appPrdShowDao;

	public int insertOne(AppPrdShow appPrdShow) throws SQLException,
			ClassNotFoundException {
		return appPrdShowDao.save(appPrdShow);
	}

	public AppPrdShow queryAppTradePrivate(String recordKey) throws SQLException {
		return appPrdShowDao.queryWithKeys(recordKey);
	}

	public int update(AppPrdShow appPrdShow) throws SQLException,
			ClassNotFoundException {
		return appPrdShowDao.update(appPrdShow);
	}

	public int delete(String appid, String recordKey) throws SQLException,
			ClassNotFoundException {
		return appPrdShowDao.delete(appid, recordKey);
	}

}